import React from 'react'

function Detail(props) {
  console.log(props.history.location.state.item);
  return (
    <div >
        {
            props.history.location.state.item &&  props.history.location.state.item.detail?<div>
                <span>{props.history.location.state.item.detail.name}</span>
                <img src={ props.history.location.state.item.detail.img} alt="" />
            </div>:"暂无数据"
        }
    </div>
  )
}

export default Detail